<template>
<view class="activity-content">
	<view class="activity-bg-content"  :style="{paddingTop:statusBarHeight +'px'}">
		<view class="payDesk-header" :style="{height: height + 'px' }">
			<image :src="`${prefix_image}/homepage/IntegralRecord/payDesk-left.png`" @tap="pageback()" />
		</view>
		<view class="activity-bg-coin">
			<image class="activity-bg-coin-img1" :src="`${prefix_image}/homepage/IntegralRecord/IntegralCurrency.png`" mode="aspectFit" />
			<text>16289</text>
			<image class="activity-bg-coin-img2" :src="`${prefix_image}/homepage/IntegralRecord/coin-right.png`" mode="aspectFit" />
		</view>
	</view>
	<view class="activity-sign-outer">
		<view class="activity-sign">
			<view class="activity-sign-title">已连续打卡<text>1</text>天，明天打卡+2积分</view>
			
			<view class="activity-sign-data-list-outer">
				<view class="activity-sign-data-list">
					<!-- <view class="activity-sign-data-list-left"></view> -->
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">今天</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right activity-sign-data-list-right-unActive">
						<view class="activity-sign-data-list-style activity-sign-data-list-unActive">
							<!-- <image src="../../static/IntegralRecord/signIcon.png" mode="aspectFit"/> -->
							+2
						</view>
						<text class="activity-sign-data-list-date">12.4</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">12.5</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">12.6</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">12.7</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">12.8</text>
					</view>
				</view>
				<view class="activity-sign-data-list">
					<view class="activity-sign-data-list-left"></view>
					<view class="activity-sign-data-list-right">
						<view class="activity-sign-data-list-style">
							<image :src="`${prefix_image}/homepage/IntegralRecord/signIcon.png`" mode="aspectFit"/>
						</view>
						<text class="activity-sign-data-list-date">12.9</text>
					</view>
				</view>
			</view>
			<view class="cameraSignInOuter">
				<view class="cameraSignIn">
					立即拍视频打卡
				</view>
			</view>
			
		</view>
	</view>
	
	<view class="coin-taskOuter">
		<view class="coin-task">
			<view class="coin-title">
				做任务赚积分
			</view>
			<view class="coin-list-content">
				<view class="coinTask-list">
					<image :src="`${prefix_image}/homepage/IntegralRecord/coinPoint5.png`" mode="aspectFit"/>
					<view class="coinTask-list-center">
						<text class="coinTask-list-center-first">完成付费1次</text>
						<text class="coinTask-list-center-second">完成付费得积分</text>
					</view>
					<view class="coinTask-list-right">
						去完成
					</view>
				</view>
				<view class="coinTask-list">
					<image :src="`${prefix_image}/homepage/IntegralRecord/coinPoint2.png`" mode="aspectFit"/>
					<view class="coinTask-list-center">
						<text class="coinTask-list-center-first">挂号一次</text>
						<text class="coinTask-list-center-second">完成挂号得积分</text>
					</view>
					<view class="coinTask-list-right">
						去完成
					</view>
				</view>
				<view class="coinTask-list">
					<image :src="`${prefix_image}/homepage/IntegralRecord/coinPoint16.png`" mode="aspectFit"/>
					<view class="coinTask-list-center">
						<text class="coinTask-list-center-first">拍视频识别并分享1次</text>
						<text class="coinTask-list-center-second">识别并分享宠物情绪语言</text>
					</view>
					<view class="coinTask-list-right">
						去完成
					</view>
				</view>
				<view class="coinTask-list">
					<image :src="`${prefix_image}/homepage/IntegralRecord/coinPoint5.png`" mode="aspectFit"/>
					<view class="coinTask-list-center">
						<text class="coinTask-list-center-first">使用快速问医生1次</text>
						<text class="coinTask-list-center-second">完成得积分</text>
					</view>
					<view class="coinTask-list-right">
						去完成
					</view>
				</view>
				<view class="coinTask-list">
					<image :src="`${prefix_image}/homepage/IntegralRecord/coinPoint16.png`" mode="aspectFit"/>
					<view class="coinTask-list-center">
						<text class="coinTask-list-center-first">参与门店活动1次</text>
						<text class="coinTask-list-center-second">当天已完成 0/3</text>
					</view>
					<view class="coinTask-list-right">
						去完成
					</view>
				</view>
			</view>
		</view>
	</view>
	
</view>
	
</template>

<script>
import { defineComponent, reactive, toRefs } from 'vue';
import config from '@/hooks/useConfig.js'
export default defineComponent({
	setup() {
		const { prefix_image,height, statusBarHeight } = config()
		const data = reactive({
			height: height,
			statusBarHeight: statusBarHeight,
			coinList: [
				{
					date: "今天",
					
				}
			],
			prefix_image
		})
		
		const pageback = () => {
			uni.navigateBack();
		}
		
		return {
			...toRefs(data),
			pageback
		}
	}
})

</script>

<style lang="stylus" scoped>
.activity-content{
	background: #F6F6F7;
	min-height: 100vh;
	.activity-bg-content{
		background: url('') 
		height: 600rpx;
		width 100vw;
		background-size: cover;
		box-sizing: border-box;
		// image{
		// 	width: 100%;
		// 	height: 600rpx;
		// }
		.payDesk-header{
			display: flex;
			    /* justify-content: center; */
			    align-items: center;
			    width: 100vw;
				    padding-left: 32rpx;
			image{
				width: 40rpx;
				height: 40rpx;
				z-index: 1
			}
			text{
				flex: 1;
				    text-align: center;
				    margin-left: -80rpx;
			}
		}
		.activity-bg-coin{
			// width: 
			height 64rpx;
			font-size: 40rpx;
			// font-family: GenJyuuGothic-P-Bold, GenJyuuGothic-P;
			font-weight: bold;
			color: #FFFFFF;
			background: #FFD300;
			border-radius: 0px 100px 100px 0px;
			line-height: 64rpx;
			display: flex;
			align-items: center;
			padding-right: 24rpx;
			width : fit-content;
			margin-top: 272rpx;
			margin-left: 50rpx;
			// box-sizing: border-box;
			.activity-bg-coin-img1{
				width: 72rpx;
				height: 72rpx;
				margin-left: -18rpx;
			}
			.activity-bg-coin-img2{
				width: 7rpx;
				height: 10rpx;
				padding-left: 16rpx;
			}
			text{
				padding-left: 6rpx;
			}
		}
	}
	.activity-sign-outer{
		display: flex;
		justify-content: center;
		.activity-sign{
			width: 686rpx;
			height: 412rpx;
			background: #FFFFFF;
			border-radius: 16rpx;
			box-sizing: border-box;
			padding: 26rpx 29rpx 32rpx 29rpx;
			margin-top:-93rpx;
			.activity-sign-title{
				font-size: 30rpx;
				// font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #666666;
				padding-bottom: 36rpx;
				text{
					color: #FFD300;
					font-size: 48rpx;
					padding: 0rpx 6rpx;
				}
			}
			.activity-sign-data-list-outer{
				display: flex;
				.activity-sign-data-list{
					text-align: center;
					display:flex;
					.activity-sign-data-list-left{
						width: 30rpx;
						height: 2rpx;
						background-color: #DCDCDC;
						margin-top: 34rpx;
					}
					// .activity-sign-data-list-left:first-of-type{
					// 	display: none;
					// }
					
					.activity-sign-data-list-date{
						font-size: 24rpx;
						// font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #CCCCCC;
					}
					.activity-sign-data-list-unActive{
						font-size: 28rpx;
						// font-family: GenJyuuGothic-P-Bold, GenJyuuGothic-P;
						font-weight: bold;
						color: #999999;
					}
					.activity-sign-data-list-style{
						background: #FFF9DA;
						border: 2rpx solid #FFD300;
						width: 64rpx;
						height: 64rpx;
						border-radius: 50%;
						display: flex;
						align-items: center;
						justify-content:center;
						box-sizing: border-box;
						image{
							width: 30rpx;
							height: 22rpx;
						}
					}
					.activity-sign-data-list-unActive{
						background: #F7F7F7;
						border: 2rpx solid rgba(0, 0, 0, 0.1);
					}
				}
			}
			.cameraSignInOuter{
				display: flex;
				justify-content: center;
				.cameraSignIn{
					width: 490rpx;
					height: 96rpx;
					background: #FFD300;
					border-radius: 48rpx;
					font-size: 32rpx;
					// font-family: PingFangSC-Semibold, PingFang SC;
					font-weight: 600;
					margin-top: 44rpx;
					text-align: center;
					line-height: 96rpx;
				}
			}
			
			
		}
	}
	
	.coin-taskOuter{
		display: flex;
		justify-content:center;
		margin-top: 64rpx;
		.coin-task{
			width: 686rpx;
			margin-bottom: 40rpx;
			.coin-title{
				font-size: 32rpx;
				// font-family: PingFangSC-Semibold, PingFang SC;
				font-weight: 600;
				color: #111111;
				padding-bottom:24rpx;
			}
			.coin-list-content{
				background-color: #fff;
				border-radius: 16px;
				padding: 36rpx 32rpx 40rpx 32rpx;
				.coinTask-list:last-of-type{
					padding-bottom:0rpx;
					margin-bottom: 0rpx;
					border: 0px;
				}
				.coinTask-list{
					display: flex;
					margin-bottom: 36rpx;
					padding-bottom: 40rpx;
					border-bottom: 1rpx solid rgba(0,0,0,0.08)
					image{
						width: 80rpx;
						height: 80rpx;
					}
					.coinTask-list-center{
						display :flex;
						flex-direction:column;
						flex: 1;
						padding-left: 20rpx;
						.coinTask-list-center-first{
							font-size: 32rpx;
							// font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #333333;
						}
						.coinTask-list-center-second{
							font-size: 26rpx;
							// font-family: PingFangSC-Light, PingFang SC;
							font-weight: 300;
							color: #999999;
						}
					}
					.coinTask-list-right{
						width: 130rpx;
						height: 60rpx;
						background: #FFD300;
						border-radius: 32rpx;
						border: 2rpx solid rgba(0, 0, 0, 0.05);
						
						font-size: 28rpx;
						// font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 60rpx;
						text-align: center;
					}
					
				}
			}
		}
	}
	
	
}

</style>
